import service from "@/utils/fetch";
const post = {
  //实时分析：汇总
  summaryForTenant(params) {
    return service({
      method: "get",
      params,
      url: "/api/report/summaryForTenant",
    });
  },

    // 实时分析：汇总
    realtime_summary(params) {
      return service({
        method: "get",
        params,
        url: "/api/report/realtime/summary",
      });
    },
  
  //实时分析：订单
  sale_summary(params) {
    return service({
      method: "get",
      params,
      url: "/api/report/sale/summary",
    });
  },

  // 会员/店铺新增趋势
  vipAndTenantTrend(params) {
    return service({
      method: "get",
      params,
      url: "/api/report/vipAndTenantTrend",
    });
  },

  // 支付/下单金额趋势
  saleTrend(params) {
    return service({
      method: "get",
      params,
      url: "/api/report/saleTrend",
    });
  },

  // 商品销售排行
  skuSaleTop10(params) {
    return service({
      method: "get",
      params,
      url: "/api/report/skuSaleTop10",
    });
  },

  // 今日商品概况
  todaySku(params) {
    return service({
      method: "get",
      params,
      url: "/api/report/todaySku",
    });
  },

  // 商品分析：总览
  skuSummary(params) {
    return service({
      method: "get",
      params,
      url: "/api/report/sku/summary",
    });
  },

  // 商品分析：商品动销趋势
  skuSaleTrend(params) {  
    return service({
      method: "get",
      params,
      url: "/api/report/sku/saleTrend",
    });
  },

  // 用户分析：总览
  vipSummary(params) {  
    return service({
      method: "get",
      params,
      url: "/api/report/vip/summary",
    });
  },

  // 用户分析：变化趋势
  vipTrend(params) {  
    return service({
      method: "get",
      params,
      url: "/api/report/vip/trend",
    });
  },

  // 用户分析：会员偏好商品排行 - TOP10
  vipSkuTop10(params) {  
    return service({
      method: "get",
      params,
      url: "/api/report/vip/skuTop10",
    });
  },

  // 用户分析：支付客单价变化趋势
  salePerAmountTrent(params) {  
    return service({
      method: "get",
      params,
      url: "/api/report/vip/salePerAmountTrent",
    });
  },

  // 店铺销售排行
  tenantSaleTop10(params) {  
    return service({
      method: "get",
      params,
      url: "/api/report/tenantSaleTop10",
    });
  },

  // 待办事项
  reportTodo(params) {  
    return service({
      method: "get",
      params,
      url: "/api/report/todo",
    });
  },
};

export default post;
